<?php

namespace Database\Seeders;

use App\Models\ChatGroupMessages;
use Illuminate\Database\Seeder;

class ChatGroupMessageSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $data = ChatGroupMessages::factory()->definition();
        $insert = [];
        for ($i = 0;$i < 1000;$i++) {
            $insert[] = $data;
        }
        
        for ($i = 0;$i < 1000; $i++) {
        $res = ChatGroupMessages::query()->insert($insert);
        echo ($i + 1).PHP_EOL;
        }
        
    }
}
